package com.yixing.tech.gateway;

import lombok.extern.slf4j.Slf4j;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.cloud.client.discovery.EnableDiscoveryClient;
import org.springframework.context.annotation.ComponentScan;
import org.springframework.data.mongodb.config.EnableMongoAuditing;
import org.springframework.scheduling.annotation.EnableAsync;

/**
 * @author yixing tech
 */
@SpringBootApplication
@EnableDiscoveryClient
@Slf4j
@EnableMongoAuditing
@EnableAsync
public class GatewayApp {

    public static void main(String[] args){
        SpringApplication.run(GatewayApp.class,args);
        log.info("--------------gateway server started----------------");
    }
}
